package com.vito.oa.act.service;

import java.util.List;

import com.vito.base.model.DataGrid;
import com.vito.oa.act.model.ActUserNodeSettingModel;
import com.vito.oa.act.model.ActUserProcessSettingModel;

/**
 * 用户企业对流程设置专属自己的配置
 * @author xuezhennan
 * @date 2018年8月28日
 */
public interface ActUserProcessSettingService {
	/**
	 * 修改设置
	 * @param setting
	 */
	public int updateUserProcessSetting(ActUserProcessSettingModel setting);
	/**
	 * 查询企业流程的设置
	 * @param processKey
	 * @param companyId
	 * @return ActUserProcessSettingModel
	 */
	public ActUserProcessSettingModel queryUserProcessSetting(String processKey,String companyId);
	/**
	 * 修改节点配置
	 * @param nodeSetting
	 * @return int
	 */
	public int updateNodesSetting(ActUserNodeSettingModel nodeSetting);

	/**
	 * 查询流程所有节点配置
	 * @param processKey
	 * @param companyId
	 * @return ActUserNodeSettingModel
	 */
	public List<ActUserNodeSettingModel> queryUserNodesSetting(String processKey,String companyId);
	/**
	 * 分页查询流程所有节点配置
	 * @param processKey
	 * @param companyId
	 * @return ActUserNodeSettingModel
	 */
	public DataGrid<ActUserNodeSettingModel> queryUserNodesSettingByPage(ActUserProcessSettingModel setting);
	/**
	 * 一次性查询流程及其节点的配置信息
	 * @param processKey
	 * @param companyId
	 * @return
	 */
	public ActUserProcessSettingModel queryProcessAndNodeSetting(String processKey,String companyId);
}
